-- GENERATED SPELL FOR [Great Wavethrasher] --


function spell0_6349(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_6349', 658, 1)
end

function Sorts_6349(pUnit, Event)
local choix_sorts_6349 = math.random(0, 0)
if choix_sorts_6349 == 0 then
pUnit:RegisterEvent('spell0_6349', 1, 1)
end
end

function mob6349_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6349', math.random(1500, 3000), 1)
end

function mob6349_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6349_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6349_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6349, 1, 'mob6349_Action')
RegisterUnitEvent(6349, 2, 'mob6349_Leave')
RegisterUnitEvent(6349, 3, 'mob6349_Kill')
RegisterUnitEvent(6349, 4, 'mob6349_Die')
